package cn.imnaer.service.rest.resquest.model;

import cn.imnaer.service.persistence.model.User;

public class WeiXinLoginParam {
	private String name; 
	private String country; 
	private String cityName;  //此CityName是微信的CityName,是英文得。
	private String state; 
	private String gender; 
	private String openId; 
	private String unionId;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getCityName() {
		return cityName;
	}
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	}
	public String getOpenId() {
		return openId;
	}
	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getUnionId() {
		return unionId;
	}
	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}
	
	public  User  caseToUser(){
		User  user=new  User();
		user.setGender(this.gender);
		user.setName(this.name);
		user.setWeixinOpenId(this.openId);
//		user.setStateCode(this.state);
		user.setWeixinUnionId(this.unionId);
		return  user;
		
	}
}
